import request from '@/utils/request';



// 列表
export const getList = () => {
  return request.get('/api/role')
};
//新增
export const add = (data) => {
  return request.post('/api/role',data)
};
// 修改
export const update = (data) => {
  return request.put('/api/role', data)
}
// 删除
export const del = (id) => {
  return request.delete(`/api/role/${id}`)
};
